#define _CRT_SECURE_NO_WARNINGS 1

class Solution
{
public:
    bool checkIfExist(vector<int>& arr)
    {
        int n = arr.size();
        int i = 0, j = 0;
        for (i = 0; i < n; i++)
        {
            for (j = i + 1; j < n; j++)
            {
                if (arr[i] == arr[j] * 2 || arr[i] * 2 == arr[j])
                {
                    return true;
                }
            }
        }

        return false;
    }
};